﻿@model MVCDemo.Models.BlogViewModel
@{
    ViewData["Title"] = "DeleteBlog";
}
<h2>DeleteBlog</h2>
<h3>Are you sure you want to delete this?</h3>
<div>
    <h4>BlogViewModel</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Title)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Title)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.Author)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Author)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.ViewTimes)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.ViewTimes)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.Content)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Content)
        </dd>
    </dl>

    <form asp-action="DeleteBlog">
        @Html.HiddenFor(model => model.Title)
        <input type="submit" value="Delete" class="btn btn-default" /> |
        <a asp-action="Index">Back to List</a>
    </form>
</div>
